package rgbos.forum.serverClient;

import java.io.IOException;

import rgbos.forum.search.IndexDeamon;

import jaxcentServer.ServerMain;


public class Forum {
	public static String DELIMITER = "|||";
//bash	public static String htmlPath= "C:\\Users\\Ofir Dagan\\Documents\\Limodim\\JavaWorkSpace\\rgbos\\src\\rgbos\\forum\\webClient\\html\\";
//bash	public static String jaxcentConfigPath= "C:\\Users\\Ofir Dagan\\Documents\\Limodim\\JavaWorkSpace\\rgbos\\src\\rgbos\\forum\\webClient\\JaxcentConfig.xml";
	
	// Benny's path
//	D:\\School\\WSEP\\rgbos\\src\\rgbos\\forum\\webClient\\html", "D:\\School\\WSEP\\rgbos\\src\\rgbos\\forum\\webClient\\JaxcentConfig.xml"

	//ofir yehud
	public static String htmlPath= "C:\\ofir\\limodim\\JavaWorkSpace\\rgbos\\src\\rgbos\\forum\\webClient\\html\\";
	public static String jaxcentConfigPath= "C:\\ofir\\limodim\\JavaWorkSpace\\rgbos\\src\\rgbos\\forum\\webClient\\JaxcentConfig.xml";
//	public static String htmlPath= "D:\\School\\WSEP\\rgbos\\src\\rgbos\\forum\\webClient\\html\\";
//	public static String jaxcentConfigPath= "D:\\School\\WSEP\\rgbos\\src\\rgbos\\forum\\webClient\\JaxcentConfig.xml";

	//gilad's Laptop
//	public static String htmlPath= "C:\\Users\\rafip\\workspaceJAVA\\rgbos\\src\\rgbos\\forum\\webClient\\html\\";
//	public static String jaxcentConfigPath= "C:\\Users\\rafip\\workspaceJAVA\\rgbos\\src\\rgbos\\forum\\webClient\\JaxcentConfig.xml";
	
	public Forum(){
	}

	public static void main(String[] args) {
	//	Auditor.AuditorSet("log.txt");
		System.out.println("Welcome");

		try {
			ServerMain jaxcentServer = new ServerMain(9090,htmlPath , jaxcentConfigPath, null );			
			jaxcentServer.start();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		ForumServer fs = new ForumServer(1234);
		Thread t= new Thread(fs);
		t.start();
		IndexDeamon id = new IndexDeamon(fs.getFacade());
		id.run();
	}

}
